package com.jrx.anytxn.investor.bean;

import com.jrx.anytxn.investor.entity.AmAccountMainInvestorInfo;
import com.jrx.anytxn.investor.entity.TlGlInterfaceInvestorInfo;

import java.util.ArrayList;
import java.util.List;

/**
 * 账户及交易信息bean
 *
 * @author liuyang
 * @date 2020-05-21
 */
public class InvestorCastAccountTransactionBean {
    /**
     * 账户信息
     */
    private AmAccountMainInvestorInfo amAccountMainInfo;
    /**
     * GL流水
     */
    private List<TlGlInterfaceInvestorInfo> tlGlInterfaceInfoList = new ArrayList<>();

    public InvestorCastAccountTransactionBean(){}

    public InvestorCastAccountTransactionBean(AmAccountMainInvestorInfo amAccountMainInfo, List<TlGlInterfaceInvestorInfo> tlGlInterfaceInfoList) {
        this.amAccountMainInfo = amAccountMainInfo;
        this.tlGlInterfaceInfoList = tlGlInterfaceInfoList;
    }

    public AmAccountMainInvestorInfo getAmAccountMainInfo() {
        return amAccountMainInfo;
    }

    public void setAmAccountMainInfo(AmAccountMainInvestorInfo amAccountMainInfo) {
        this.amAccountMainInfo = amAccountMainInfo;
    }

    public List<TlGlInterfaceInvestorInfo> getTlGlInterfaceInfoList() {
        return tlGlInterfaceInfoList;
    }

    public void setTlGlInterfaceInfoList(List<TlGlInterfaceInvestorInfo> tlGlInterfaceInfoList) {
        this.tlGlInterfaceInfoList = tlGlInterfaceInfoList;
    }

    public void addTlGlInterfaceInfo(TlGlInterfaceInvestorInfo tlGlInterfaceInfo){
        if(null != tlGlInterfaceInfo){
            this.tlGlInterfaceInfoList.add(tlGlInterfaceInfo);
        }
    }
}
